package com.sojson.util.job.impl;

import org.quartz.DisallowConcurrentExecution;
import org.quartz.JobExecutionContext;

import com.sojson.project.monitor.job.entity.po.Job;
import com.sojson.util.job.AbstractQuartzJob;
import com.sojson.util.job.JobInvokeUtil;

/**
 * 定时任务处理(禁止并发执行)
 * 
 * @author liu
 * @date 2021-04-20
 */
@DisallowConcurrentExecution
public class QuartzDisallowConcurrentExecution extends AbstractQuartzJob {

    @Override
    protected void doExecute(JobExecutionContext context, Job job) throws Exception {
        JobInvokeUtil.invokeMethod(job);
    }

}